<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>示例6</title>
</head>
<body>
    <script>
        const name = 'jack'
        const birth = '2001/12/23'

        const person = {
            name,
            age:19,
            birth,
            show(){
                console.log("姓名:"+this.name + "生日:"+birth)
            }
        }
        person.show()
    </script>
</body>
</html>